package com.atguigu.order.feign;

import com.atguigu.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author polaris
 * @date 2021/1/25 6:39 下午
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

  @RequestMapping("member/memberreceiveaddress/getAddressByUserId")
  List<MemberAddressVo> getAddressByUserId(@RequestBody Long userId);
}
